import React from 'react'
import {Form,Button,Input,Select} from 'antd'
export default function tableSearchHeader() {
const [form] = Form.useForm()
function onFinish(){

}
function onFinishFailed(){

}
function refresh(){

}
const onGenderChange = (value: string) => {
    console.log(value)
  };
const { Option } = Select;
  return (
    <div>
         <Form
         form={form}
        name="basic"
        layout='inline'
        labelCol={{ span: 8 }}
        wrapperCol={{ span: 16 }}
        initialValues={{ remember: true }}
        onFinish={onFinish}
        onFinishFailed={onFinishFailed}
        autoComplete="off"
        >
        <Form.Item
            label="项目编码"
            name="username"
        >
            <Input />
        </Form.Item>

        <Form.Item
            label="状态"
            name="password"
        >
             <Select
                placeholder="请选择状态"
                onChange={onGenderChange}
                allowClear
                >
                    <Option value="1">已完成</Option>
                    <Option value="2">待启动</Option>
                    <Option value="3">已结束</Option>
                </Select>
        </Form.Item>

        <Form.Item wrapperCol={{ offset: 24, span: 24 }}>
            <Button type="primary" htmlType="submit" style={{marginRight:'5px'}}>
                查询
            </Button>
            <Button onClick={refresh}>
                重置
            </Button>
        </Form.Item>
        </Form>
    </div>
  )
}
